package com.zzyl;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.RedisTemplate;

@SpringBootTest
public class testRides {
    @Autowired
    private RedisTemplate<String, String> redisTemplate;

    @Test
    public void testSet() {
        redisTemplate.opsForValue().set("name", "zzyl");
    }
    @Test
    public void testGet() {
        String name = redisTemplate.opsForValue().get("name");
        System.out.println(name);
    }
}
